package com.acme.bankapp.exception;


public class OverDraftLimitExceededException extends NotEnoughFundsException {

    private static final long serialVersionUID = 3572496817860222211L;

    private double amount;

    public OverDraftLimitExceededException() {
	super();

    }

    public OverDraftLimitExceededException(String text) {
	super(text);

    }

    public OverDraftLimitExceededException(String text, double amount) {
	super(text);
	this.amount = amount;

    }

    @Override
    public String getMessage() {
	return super.getMessage() + ". Maximum amount of funds to withdraw is " + amount;

    }

}
